package pathFinder.bfs;


public class Edge {

    protected String from;
    protected String to;
    private int day_depart;
    private int hour_depart;
    private int duration;
    private int id_flight;
    private Node startNode;
    private Node stopNode;
    private Graph map;
    private float price;
    
    public Node getDestination(){
    	return stopNode;
    }

    public Edge(Graph map,int id_flight,String from, String to, int day_depart, int hour_depart, int duration,int price){
    	this.id_flight = id_flight;
    	this.startNode = map.getAirpotNode(from);
    	this.stopNode = map.getAirpotNode(to);
    	this.hour_depart	= hour_depart;
    	this.duration = duration;
    	this.day_depart = day_depart;
    	this.from = from;
    	this.to = to;
    	this.price = price;
    }
    
    public int getHourDeparture(){
    	return hour_depart;
    }
    
    public int getDurationFlight(){
    	return duration;
    }
    
    public void setIdFlight(int id){
    	this.id_flight = id;
    }
    public int getIdFlight(){
    	return id_flight;
    }
    public float getPrice(){
    	return price;
    }
    public void setPrice(float price){
    	this.price = price;
    }
    public int getDepartureDay(){
    	return this.day_depart;
    }

}
